package b.third.impl

import akka.NotUsed
import com.lightbend.lagom.scaladsl.api.ServiceCall

import scala.concurrent.{ExecutionContext, Future}

/**
  * Created by lenovo on 2017/1/24.
  */
class C第三方支付ServiceImpl2()(implicit ec: ExecutionContext) extends T第三方支付Service {
  override val serviceName: String = "THIRD2"
  var seq: Int = 0
  override def f取号: ServiceCall[String, Int] = ServiceCall { _ =>
    seq = seq + 1
    Future.successful(-seq)
  }
}
